<?php
/**
 * Created by PhpStorm.
 * User: CodeShuhao
 * Date: 2019/5/22
 * Time: 15:49
 */

namespace app\common\validate;


class UserValidate extends BasicValidate
{
    //验证规则
    protected $rule = [
        'username|用户名' => 'require',
        'password|密码' => 'require',
    ];

    //提示信息
    protected $message = [
        'uid.require' => '数据有误',
    ];

    //应用场景
    protected $scene = [
        'login' => ['username', 'password'],
    ];
}